# -*- coding: utf-8 -*-
# @Time    : 2020/8/31 21:45
# @Author  : liupengfei
# @File    : filters.py
import django_filters

from .models import OrderService, AdornService


class OrderServiceFilter(django_filters.FilterSet):
    class Meta:
        model = OrderService
        fields = '__all__'


class AdornServiceFilter(django_filters.FilterSet):
    name = django_filters.CharFilter(field_name='name', lookup_expr='icontains')

    class Meta:
        model = AdornService
        fields = '__all__'
